package com.study.Entity;


public class Command {

    private String imei;
    private String commandNumber;
    private String cmd;
    private String content;
    private Integer status;    // 1-已发送（但是未回复） 2-发送失败 3-不需要保存  4-需要保存  （3和4的状态只在构建指令时暂存用）
    private Integer repeatCount;   // 重发次数; 只重发一次，当重发次数为1时还发现未重发，则表示未重发失败
    private Long lastSendTime;
    private Integer sequence;//序列号，针对白名单和课堂模式

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getCommandNumber() {
        return commandNumber;
    }

    public void setCommandNumber(String commandNumber) {
        this.commandNumber = commandNumber;
    }

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getRepeatCount() {
        return repeatCount;
    }

    public void setRepeatCount(Integer repeatCount) {
        this.repeatCount = repeatCount;
    }

    public Long getLastSendTime() {
        return lastSendTime;
    }

    public void setLastSendTime(Long lastSendTime) {
        this.lastSendTime = lastSendTime;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    @Override
    public String toString() {
        return "Command{" +
                "imei='" + imei + '\'' +
                ", commandNumber='" + commandNumber + '\'' +
                ", cmd='" + cmd + '\'' +
                ", content='" + content + '\'' +
                ", status=" + status +
                ", repeatCount=" + repeatCount +
                ", lastSendTime=" + lastSendTime +
                ", sequence=" + sequence +
                '}';
    }
}
